/**
 * Created by csy on 17/4/22.
 */
function Msg(code, msg = '', success, data = ''){
    this.code    = code;
    this.msg     = msg;
    this.success = success;
    this.data    = data;
}

module.exports = function(code, msg, success, data){
    //console.log(arguments)
    //let arg = Array.prototype.slice.call(arguments);
    //console.log(arg)
    return new Msg(code, msg, success, data)
}